﻿using Fozzy.Being;

using System.Globalization;
using System.Xml;
using System.Xml.Linq;

namespace Fozzy.Gedcom
{
    /// <summary>
    /// One family group. 
    /// </summary>
    public class Id_Template                : Template
    {
        #region States
        #endregion

        #region Properties
        #endregion

        #region Constructeur
            //"@{0}@"
            public Id_Template()            : base(string.Format("@I" + Statics.Position0 + "@", Module.Compteur.ToString()))
            {
                Module.Compteur.Increase(1) ;
            }
        #endregion

            //try 
            //{ 
            //    return node.Attributes["Value"].Value.Replace('@', ' ').Trim(); 
            //}
            //catch 
            //{
            //    // Invalid line, keep processing the file.
            //    return string.Empty; 
            //}

        //public string Get(string guid)
        //{
        //    // Return right away if already mapped.
        //    if (map.ContainsKey(guid))
        //        return map[guid];

        //    // Assign a new GEDCOM ID and add to map.
        //    string id = string.Format(CultureInfo.InvariantCulture, "I{0}", nextId++);
        //    map[guid] = id;
        //    return id;

    }
}
